# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=wayfire
pkgver=0.7.3
pkgrel=0
pkgdesc="Compiz-clone Wayland compositor"
url="https://wayfire.org"
arch="all"
license="MIT"
install="$pkgname.post-install"
makedepends="
	meson
	wlroots-dev
	glm-dev
	wf-config-dev
	cairo-dev
	libexecinfo-dev
	libxml2-dev
	wayland-protocols
	pango-dev
	"
options="!check" # no testsuite
subpackages="$pkgname-dev"
source="https://github.com/WayfireWM/wayfire/releases/download/v$pkgver/wayfire-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Duse_system_wlroots=enabled \
		-Duse_system_wfconfig=enabled \
		. output
	meson compile ${JOBS:+--j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	install -Dm644 wayfire.ini "$pkgdir"/usr/share/wayfire/wayfire.ini.default
	install -Dm644 wayfire.desktop "$pkgdir"/usr/share/wayland-sessions/wayfire.desktop
}

sha512sums="
7bb5b8492a632a9816e847ec72def74dc234bcc30da7c320a0cd3b1d60492f5521ad8ac76a12ef967d1b114bcde9be72eb8ffc618977aed8e198d4ace1e7056e  wayfire-0.7.3.tar.xz
"
